package testJdk.commonUse.number.testLong;

import org.junit.Test;

/**
 * @version 1.0.0
 * Created by cyd on 2022-06-14 11:11:32
 * @ClassName : learn_jdk.commonUse.number.testLong.TestLong
 * @Description : 类描述
 */
public class TestLong {

    /**
     * 测试long和string的两种类型转换
     */
    @Test
    public void test03() {
        Long aLong = Long.getLong("10");
        long l = Long.parseLong("10");
        System.out.println("getLong:" + aLong);
        System.out.println("parseLong:" + l);
    }

    /**
     * 测试long初始化
     */
    @Test
    public void test04() {
        DemoBean demoBean = new DemoBean();
        System.out.println(demoBean.getTestLong());
    }

}
